package bar.dark.lee.setting.sms;

import android.os.Parcel;
import android.os.Parcelable;
import bar.dark.lee.manager.card.CreditCardData;

public class AllCardData implements Parcelable {
	private String id;
	private String name;
	private String cardType;
	
	public AllCardData(){};
	
	public AllCardData(Parcel source)
	{
		this.id = source.readString();
		this.name = source.readString();
		this.cardType = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getName());
		dest.writeString(this.getCardType());
	}
	
	public static Parcelable.Creator<CreditCardData> CREATOR = new Creator<CreditCardData>()
	{
		@Override
		public CreditCardData[] newArray(int size)
		{
			return new CreditCardData[size];
		}
		
		@Override
		public CreditCardData createFromParcel(Parcel source)
		{
			return new CreditCardData(source);
		}
	};
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCardType() {
		return cardType;
	}
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
}
